<?php
/**
 * Created by PhpStorm.
 * User: chengchaogui
 * Date: 2017/11/14
 * Time: 11:29
 */

namespace App\Framework\Enum;


class CoinLogEventEnum
{
    const UNKNOWN = 0;//未知
    const CHIP_NEW_USER = 15000;//新手奖励
    const CHIP_ADJUST_ROBOT = 15001;//机器人金币调整
    const CHIP_SEND_LED = 15002;//发送led
    const CHIP_GAMEWIN_3V3 = 15003; //3v3输赢
    const CHIP_GAMEWIN_LEVEL = 15004;//闯关输赢
    const CHIP_LEVEL_ROOM_JOIN = 15005; //闯关报名
    const CHIP_SEND_EMOTION = 15006; //发送表情
    const CHIP_GM_ADJUST = 15007; //gdss调整

    public static $dataMap = [
        self::UNKNOWN => '未知',
        self::CHIP_NEW_USER => '新手奖励',
        self::CHIP_ADJUST_ROBOT => '机器人金币调整',
        self::CHIP_SEND_LED => '发送led',
        self::CHIP_GAMEWIN_3V3 => '3v3输赢',
        self::CHIP_GAMEWIN_LEVEL => '闯关输赢',
        self::CHIP_LEVEL_ROOM_JOIN => '闯关报名',
        self::CHIP_SEND_EMOTION => '发送表情',
        self::CHIP_GM_ADJUST => 'gdss调整'
    ];

    public static function getName($key)
    {
        if (array_key_exists($key, self::$dataMap)) {
            return self::$dataMap[$key];
        }

        return '';
    }
}